import request from '@/utils/request'

// 查询用户主列表
export function listUserd(query) {
  return request({
    url: '/system/userd/list',
    method: 'get',
    params: query
  })
}

// 查询用户主详细
export function getUserd(id) {
  return request({
    url: '/system/userd/' + id,
    method: 'get'
  })
}

// 新增用户主
export function addUserd(data) {
  return request({
    url: '/system/userd',
    method: 'post',
    data: data
  })
}

// 修改用户主
export function updateUserd(data) {
  return request({
    url: '/system/userd',
    method: 'put',
    data: data
  })
}

// 删除用户主
export function delUserd(id) {
  return request({
    url: '/system/userd/' + id,
    method: 'delete'
  })
}
